/*
 * @Author: Penk
 * @LastEditors: Penk
 * @LastEditTime: 2022-09-13 22:29:38
 * @FilePath: \autojs\跳入抖音个人主页或者视频页.js
 */
// 跳到作者
function dumpUser(userId){
  app.startActivity({
    action:"android.intent.action.VIEW",
    packageName: "com.ss.android.ugc.aweme",
    data:"snssdk1128://user/profile/"+userId,
    // root: true
  });
}

// 钟先生的抖音ID
// var userId='85094837512';
// 林小姐的ID
var userId='3835513116037719';
dumpUser(userId);


// 跳到视频
function dumpDetail(detailId){
  app.startActivity({
    action:"android.intent.action.VIEW",
    packageName: "com.ss.android.ugc.aweme",
    data:"snssdk1128://aweme/detail/"+detailId,
    // root: true
  });
}

var detailId='7134682892306861325';
// dumpDetail(detailId);